<template>
  <div class="query_list">
    <div class="query">
      <div class="date1">
        <span>日期</span>
        <el-date-picker v-model="value1" style="width:200px" type="date" placeholder="选择日期">
        </el-date-picker>
      </div>
      <div class="date2">
        <span>至</span>
        <el-date-picker v-model="value2" style="width:200px" type="date" placeholder="选择日期">
        </el-date-picker>
      </div>
      <el-button>查询</el-button>
    </div>
    <div class="table_title">预警历史</div>
    <div class="table">
      <el-table :data="tableData" style="width: 100%">
        <el-table-column prop="date" label="" width="80">
        </el-table-column>
      </el-table>
    </div>
    <div class="tab">
      <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
        <el-tab-pane label="实况" name="first">
          <div class="element">
            <span>要素</span>
            <el-select v-model="value" placeholder="请选择">
              <el-option v-for="item in options2" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
          </div>
          <div class="time1">
            <span>开始</span>
            <el-date-picker v-model="value3" style="width:120px" type="date" placeholder="选择日期">
            </el-date-picker>
            <el-time-select v-model="values1" style="width:65px" :picker-options="{
              start: '00:00',
              step: '01:00',
              end: '23:00'
            }" placeholder="选择时间">
            </el-time-select>
            <span>时</span>
          </div>
          <div class="time2">
            <el-checkbox v-model="checked"></el-checkbox>
            <span>至</span>
            <el-date-picker v-model="value4" style="width:120px" type="date" placeholder="选择日期">
            </el-date-picker>
            <el-time-select v-model="values2" style="width:65px" :picker-options="{
              start: '00:00',
              step: '01:00',
              end: '23:00'
            }" placeholder="选择时间">
            </el-time-select>
            <span>时</span>
          </div>
          <el-button>实况分析</el-button>
        </el-tab-pane>
        <el-tab-pane label="预报" name="second">
          <div class="date">
            <span>日期</span>
            <el-date-picker v-model="value5" type="date" placeholder="选择日期">
            </el-date-picker>
          </div>
          <div class="times">
            <span>时次</span>
            <el-select v-model="value" placeholder="请选择">
              <el-option v-for="item in options3" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
          </div>
          <div class="ageing">
            <span>时效</span>
            <el-select v-model="value" placeholder="请选择">
              <el-option v-for="item in options4" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
          </div>
          <div class="button">
            <el-button>区域预报</el-button>
            <el-button>雷达图</el-button>
          </div>
        </el-tab-pane>
        <el-tab-pane label="地理条件" name="third">
          <div class="layer">
            <span>选择图层</span>
            <el-select v-model="value" placeholder="请选择">
              <el-option v-for="item in options5" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
          </div>
          <el-button>地理分析</el-button>
        </el-tab-pane>
      </el-tabs>
    </div>
    <div class="btn">
      <el-button>预警删除</el-button>
      <el-button>预警文档</el-button>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      value1: "",
      value2: "",
      tableData: [{
        date: '',
      }],
      options2: [{
        value: '选项1',
        label: '降水'
      }],
      options3: [{
        value: '选项1',
        label: '20'
      }],
      options4: [{
        value: '选项1',
        label: '24'
      }],
      options5: [{
        value: '选项1',
        label: '村庄'
      }],
      value: '选项1',
      activeName: 'first',
      value1: '',
      value2: '',
      value3: '',
      value4: '',
      value5: '',
      values1: '',
      values2: '',
      checked: true,
    }
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  }
}
</script>
<style scoped lang="less">
.query_list{
  width: 100%;
  height: 100%;
  font-size: 12px;
  padding-right: 10px;
  box-sizing: border-box;
}
.query_list .query{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  .date1,.date2{
    width: 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
}
.query_list .table{
  width: 100%;
  height: 150px;
}
.query_list .tab {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
.el-tabs{
  width: 100%;
}
  /deep/ .el-tabs__content {
    width: 100%;
    border: 1px solid;
    height: 220px;

    .el-tab-pane {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;

      .element {
        width: 250px;
        display: flex;
        justify-content: space-between;
        align-items: center;

        margin-top: 20px;

        .el-select {
          width: 210px;
        }
      }

      .time1,
      .time2 {
        width: 250px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
      }

      .el-button {
        margin-top: 10px;
      }

      .date,
      .times,
      .ageing {
        width: 250px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
      }

      .button {
        width: 200px;
        display: flex;
        justify-content: space-between;
      }

      .layer {
        width: 260px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;

        .el-select {
          width: 200px;
        }
      }
    }
  }

  /deep/ .el-tabs__header {
    margin: 0;
  }

}
.query_list .btn{
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
</style>
